// router/index.js
import { createRouter, createWebHashHistory } from 'vue-router'

const routes = []

const modules = import.meta.globEager('./modules/*.js')
for (const path in modules) {
  routes.push({ ...modules[path].default })
}

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
